package com.ruoyi.project.seeDoctor.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

public class MedCaseMedical extends BaseEntity {
    private String case_id;
    private String reg_id;
    private String pati_code;
    private Integer medical_id;
    private Integer drug_id;
    private Integer medical_num;
    private Double medical_price;
    private String medical_remark;
    private Integer pay_status;

    @Override
    public String toString() {
        return "MedCaseMedical{" +
                "case_id='" + case_id + '\'' +
                ", reg_id='" + reg_id + '\'' +
                ", pati_code='" + pati_code + '\'' +
                ", medical_id=" + medical_id +
                ", drug_id=" + drug_id +
                ", medical_num=" + medical_num +
                ", medical_price=" + medical_price +
                ", medical_remark='" + medical_remark + '\'' +
                ", pay_status=" + pay_status +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MedCaseMedical that = (MedCaseMedical) o;
        return Objects.equals(case_id, that.case_id) &&
                Objects.equals(reg_id, that.reg_id) &&
                Objects.equals(pati_code, that.pati_code) &&
                Objects.equals(medical_id, that.medical_id) &&
                Objects.equals(drug_id, that.drug_id) &&
                Objects.equals(medical_num, that.medical_num) &&
                Objects.equals(medical_price, that.medical_price) &&
                Objects.equals(medical_remark, that.medical_remark) &&
                Objects.equals(pay_status, that.pay_status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(case_id, reg_id, pati_code, medical_id, drug_id, medical_num, medical_price, medical_remark, pay_status);
    }

    public String getCase_id() {
        return case_id;
    }

    public void setCase_id(String case_id) {
        this.case_id = case_id;
    }

    public String getReg_id() {
        return reg_id;
    }

    public void setReg_id(String reg_id) {
        this.reg_id = reg_id;
    }

    public String getPati_code() {
        return pati_code;
    }

    public void setPati_code(String pati_code) {
        this.pati_code = pati_code;
    }

    public Integer getMedical_id() {
        return medical_id;
    }

    public void setMedical_id(Integer medical_id) {
        this.medical_id = medical_id;
    }

    public Integer getDrug_id() {
        return drug_id;
    }

    public void setDrug_id(Integer drug_id) {
        this.drug_id = drug_id;
    }

    public Integer getMedical_num() {
        return medical_num;
    }

    public void setMedical_num(Integer medical_num) {
        this.medical_num = medical_num;
    }

    public Double getMedical_price() {
        return medical_price;
    }

    public void setMedical_price(Double medical_price) {
        this.medical_price = medical_price;
    }

    public String getMedical_remark() {
        return medical_remark;
    }

    public void setMedical_remark(String medical_remark) {
        this.medical_remark = medical_remark;
    }

    public Integer getPay_status() {
        return pay_status;
    }

    public void setPay_status(Integer pay_status) {
        this.pay_status = pay_status;
    }

    public MedCaseMedical() {
    }

    public MedCaseMedical(String case_id, String reg_id, String pati_code, Integer medical_id, Integer drug_id, Integer medical_num, Double medical_price, String medical_remark, Integer pay_status) {
        this.case_id = case_id;
        this.reg_id = reg_id;
        this.pati_code = pati_code;
        this.medical_id = medical_id;
        this.drug_id = drug_id;
        this.medical_num = medical_num;
        this.medical_price = medical_price;
        this.medical_remark = medical_remark;
        this.pay_status = pay_status;
    }
}
